package cn.com.miao.lynx.rpc.grpc.starter.annotation;

import cn.com.miao.lynx.rpc.grpc.starter.config.GrpcAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * GrpcServiceScan
 *
 * @title: GrpcServiceScan
 * @description:
 * @author: dengmiao
 * @create: 2019-12-25 15:59
 **/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import({GrpcAutoConfiguration.ExternalGrpcServiceScannerRegistrar.class})
public @interface GrpcServiceScan {

    /**
     * `@GrpcService` 所注解的包扫描路径
     */
    String[] packages() default {};
}
